home *** CD-ROM | disk | FTP | other *** search
/ Belgian Amiga Club - ADF Collection / BS1 part 60.zip / BS1 part 60 / Digital Sound Studio d1.adf / ARexx / filter.rexx < prev    next >
OS/2 REXX Batch file  |  1993-08-04  |  1KB  |  29 lines

  1. /* DSS8+ Cutoff Filter Adjustment Script */
  2. /* by Bill Prescott  8/4/93                 */
  3.  
  4. Options Results            /* Allows you to get result codes from the          */
  5.                         /* commands issued below.                          */
  6.  
  7. address "REXX_DSS8"        /* This defines where the rest of the script       */
  8.                         /* be talking to.                                  */
  9.  
  10. filterfreq 25000        /* The number following "filterfreq" sets the    */
  11.                         /* cutoff frequency of the sampler's anti-alias  */
  12.                         /* low-pass filter, and can be any integer from  */
  13.                         /* 1000 to 25000.  Although there are only 128   */
  14.                         /* possible cutoff frequency settings available, */
  15.                         /* dssrexx will round off any integer to the     */
  16.                         /* nearest cutoff frequency setting              */
  17.  
  18. filterfreq                /* This line will get the current setting of the */
  19.                         /* cutoff filter and place it in the variable     */
  20.                         /* "result".                                     */
  21.  
  22. ff=result                /* Now we are making the variable "ff" equal to  */
  23.                         /* output of the above result so that the next   */
  24.                         /* result won't overwrite the one that we need.  */
  25.  
  26. say ff                    /* This just prints the variable "ff" to the     */
  27.                         /* screen so that you know that the filter has      */
  28.                         /* been set to the requested setting.             */
  29.